#安装kubeadm kubelet kubectl
KUBE_VERSION=1.21.4
yum install -y kubelet-${KUBE_VERSION} kubeadm-${KUBE_VERSION} kubectl-${KUBE_VERSION}

#列出所需的镜像
kubeadm config images list

#重启开机自启
systemctl enable kubelet && systemctl start kubelet

systemctl daemon-reload
systemctl restart kubelet